#pragma once
#include<sys/types.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<netinet/in.h>

#include<stdlib.h>
#include<string>
#include<iostream>
#include<strings.h>
#include<string.h>

#include"log.hpp"

#define DIE(code) exit(code)
#define CONV(addr) ((struct sockaddr*)(addr))